package com.tools.model.params;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author wangminggen
 */
@Data
public class UserParams {
    @NotBlank(message = "手机号不能为空", groups = {loginInCode.class, addUser.class})
    private String phone;

    @NotBlank(message = "验证码不能为空", groups = {loginInCode.class})
    private String code;

    @NotNull(message = "参数不能为空", groups = {loginInCode.class})
    private UserParams.Role role;


    public @interface loginInCode {
    }

    public @interface register {
    }

    public @interface addUser {
    }

    public @interface bind {
    }

    public enum Role {
        DOCTOR,
        USER,
    }
}
